﻿ 
@using Volo.Abp.AspNetCore.Components
@using Volo.Abp.UI.Navigation
@using AntDesign
@inherits AbpComponentBase
@implements  ERP.Abp.AntDesignUI.IReuseTabsPage
@code{
    protected ApplicationMenuItem CurrentMenu;
    [Inject] protected IMyMenuManager IMyMenuManager { get; set; }
    [Inject] protected NavigationManager NavigationManager { get; set; }

    public   virtual   RenderFragment GetPageTitle()
     {
          if(CurrentMenu!=null&& CurrentMenu.Icon!=null)
           return @<span><AntDesign.Icon Type = "@(CurrentMenu==null?"home":CurrentMenu.Icon)" />@(CurrentMenu==null?"首页":CurrentMenu.DisplayName)</span>;
           else
            return @<span>@(CurrentMenu==null?"首页":CurrentMenu.DisplayName)</span>;
     }
}


